import request from '@/utils/request'

export function getList(data, params) {
  return request({
    url: '/sys/menu/list',
    method: 'post',
    data,
    params
  })
}

export function saveMenu(data) {
  return request({
    url: '/sys/menu/save',
    method: 'post',
    data
  })
}

export function getAllMenu(data) {
  return request({
    url: '/sys/menu/all',
    method: 'post',
    data
  })
}

export function getRoleMenu(data) {
  return request({
    url: '/sys/menu/getRoleMenu',
    method: 'post',
    data
  })
}

export function deleteMenu(data) {
  return request({
    url: '/sys/menu/delete',
    method: 'post',
    data
  })
}
